home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / sound / aiff writer sdev / aiff_writer.r < prev    next >
Encoding:
Text File  |  2000-09-28  |  2.3 KB  |  64 lines

  1. /*
  2.     File:        AIFF_writer.r
  3.  
  4.     Contains:    Defines needed to make a fat sound output component 'thng' resource.
  5.  
  6.     Written by: Mark Cookson    
  7.  
  8.     Copyright:    Copyright ©1996-1999 by Apple Computer, Inc., All Rights Reserved.
  9.  
  10.                 You may incorporate this Apple sample source code into your program(s) without
  11.                 restriction. This Apple sample source code has been provided "AS IS" and the
  12.                 responsibility for its operation is yours. You are not permitted to redistribute
  13.                 this Apple sample source code as "Apple sample source code" after having made
  14.                 changes. If you're going to re-distribute the source, we require that you make
  15.                 it clear in the source that the code was descended from Apple sample source
  16.                 code, but that you've made changes.
  17.  
  18.     Change History (most recent first):
  19.                 8/16/1999    Karl Groethe    Updated for Metrowerks Codewarror Pro 2.1
  20.                 
  21.  
  22. */
  23.  
  24. #define UseExtendedThingResource    1                    // we want the extended thng resource
  25. #define SystemSevenOrLater             1                    // we only run with System 7, right?
  26. #define FATCOMPONENT                0
  27.  
  28. #include <SysTypes.r>
  29. #include <Types.r>
  30. #include <Components.r>
  31.  
  32. #define kAIFFWriterComponentID    128
  33. #define kAIFFWriterSubType        'AIFW'                    /* OS Type for component */
  34.  
  35. #define kAIFFWriterVersion        0x00010000                /* version for this sifter */
  36. #define kManufacturerType        'appl'                    // manufacturer
  37.  
  38. #define k68KCodeResType            'cdec'
  39. #define kPPCCodeResType            'cdek'
  40.  
  41. // AIFF writer output component, 68K, PPC
  42.  
  43. resource 'thng' (kAIFFWriterComponentID, "AIFF writer") {
  44.     kSoundOutputDeviceType, kAIFFWriterSubType, kManufacturerType,            // types
  45.     cmpWantsRegisterMessage, kAnyComponentFlagsMask,                        // flags
  46.     k68KCodeResType,    kAIFFWriterComponentID,                                // 68K code
  47.     'STR ',                kAIFFWriterComponentID,                                // name
  48.     'STR ',                 kAIFFWriterComponentID+1,                            // info
  49.     'ICON',             kAIFFWriterComponentID,                                // icon
  50.     kAIFFWriterVersion,                                                        // version
  51.     componentDoAutoVersion | componentHasMultiplePlatforms,                    // registration flags
  52.     0,                                                                        // icon
  53.     {
  54. #ifdef FATCOMPONENT
  55.         cmpWantsRegisterMessage,                                            // flags
  56.         k68KCodeResType,    kAIFFWriterComponentID,                            // code
  57.         platform68k,                                                        // platform
  58. #endif
  59.         cmpWantsRegisterMessage,                                            // flags
  60.         kPPCCodeResType,    kAIFFWriterComponentID,                            // code
  61.         platformPowerPC                                                        // platform
  62.     };
  63. };
  64.